package com.geekarchitect.patterns.visitor.geek.v3;

/**
 * 提取文本具体访问者实现
 *
 * @author Hongliang Zhu
 * @create 2023-01-07 21:42
 */
public class Extractor implements Visitor {
    @Override
    public void visit(PdfFile pdfFile) {
        System.out.println("Extract PDF.");
    }

    @Override
    public void visit(PPTFile pptFile) {
        System.out.println("Extract PPT.");
    }

    @Override
    public void visit(WordFile wordFile) {
        System.out.println("Extract Word.");
    }
}
